<?php $this->headTitle($this->error, 'PREPEND'); ?>
<h1><?php echo $this->error; ?></h1>
<div>
<p><a href='/'>Back to front page</a></p>
<?php if (ZAPP_PRODUCTION !== ZAPP_ENVIRONMENT): ?>
    <h3>Exception Information:</h3>
    <p><b>Message:</b> <?php echo $this->exception->getMessage(); ?></p>

    <h3>Stack Trace:</h3>
    <?php echo nl2br($this->exception->getTraceAsString()); ?>

    <h3>Request Parameters:</h3>
    <?php print_r($this->request->getParams()); ?>
<?php endif; ?>
</div>